/**
 * Created by Fplyth0ner
 * @date 2022/10/14 0022
 */
import request from "@/utils/request";

const create = params => {
  return request({
    url: "/api/v1/rule/exclude/create",
    method: "post",
    data: params
  });
};

const _delete = params => {
  return request({
    url: "/api/v1/rule/exclude/delete",
    method: "get",
    data: params
  });
};

const getKeyword = params => {
  return request({
    url: "/api/v1/rule/exclude/keywords",
    method: "post",
    data: params
  });
};

const getKeywordProp = params => {
  return request({
    url: "/api/v1/rule/keywords/property",
    method: "post",
    data: params
  });
};

const getorg = params => {
  return request({
    url: "/api/v1/rule/exclude/getorg",
    method: "get",
    data: params
  });
};

const getpublic = params => {
  return request({
    url: "/api/v1/rule/exclude/getpublic",
    method: "get",
    data: params
  });
};

const detail = params => {
  return request({
    url: "/api/v1/rule/exclude/detail",
    method: "get",
    data: params
  });
};

const disable = params => {
  return request({
    url: "/api/v1/rule/exclude/disable",
    method: "get",
    data: params
  });
};

const undisable = params => {
  return request({
    url: "/api/v1/rule/exclude/undisable",
    method: "get",
    data: params
  });
};

export default {
  create,
  _delete,
  getorg,
  getpublic,
  detail,
  disable,
  undisable,
  getKeyword,
  getKeywordProp
};
